package org.springblade.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.springblade.applicationapi.entity.App;
import org.springblade.applicationapi.entity.ApplicationManagementEntity;

import java.util.List;

/**
 * description: AppMapper <br>
 * date: 2022/4/6 11:49 <br>
 * author: yzpang <br>
 * version: 1.0 <br>
 */
@Mapper
public interface AppMapper extends BaseMapper<App> {
	App getAppByAppId(String appid);

	List<App> selectAppPage(IPage<App> page, List<Long> ids);

	Boolean updateApp(App app);

	App getAppByAppName(String appName);

	List<App> findAppList();

	void deleteByIds(String ids);

	/**
	 * 输入dept_id 模糊查询出应用管理对象
	 * @param id 部门id
	 * @return 应用管理类
	 */
	List<ApplicationManagementEntity> getEntity(Long id);

	Boolean updateByAlias(App app);

	List<App> selectQueryApp(IPage<App> page, App app, String order, String name);
}
